﻿<UserControl x:Class="WindowsPhoneToolbox.Controls.XapDeployControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:res="clr-namespace:WindowsPhoneToolbox"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" Focusable="True"
             d:DesignHeight="300" d:DesignWidth="300" 
             xmlns:fuplod="clr-namespace:WPF40_FileUploadCustonControl;assembly=WPF40_FileUploadCustonControl">
    
    <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch">
        <TextBlock Text="{Binding Source={x:Static res:Resources.XSelectXap}}" FontWeight="Bold" />
        <fuplod:FileUploadCustomControl Name="fileUpload" Margin="0,5" />
        <CheckBox Content="{Binding Source={x:Static res:Resources.XLaunchAfter}}" Name="Chklaunch" />
        <Expander x:Name="expanappdata" Margin="0,5,0,0" IsEnabled="False">
            <Expander.Header>
                <TextBlock Text="{Binding Source={x:Static res:Resources.XApplicationData}}" FontWeight="Bold"></TextBlock>
            </Expander.Header>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition />
                   <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="70" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <TextBlock Text="{Binding Source={x:Static res:Resources.XPrdId}}" Margin="0,5,0,0" Grid.Row="0" />
                <TextBlock Text="{Binding Source={x:Static res:Resources.XTitle}}" Margin="0,5,0,0" Grid.Row="1" />
                <TextBlock Text="{Binding Source={x:Static res:Resources.XVersion}}" Margin="0,5,0,0" Grid.Row="2" />
                <TextBlock Text="{Binding Source={x:Static res:Resources.XAuthor}}" Margin="0,5,0,0" Grid.Row="3"/>
                <TextBlock Text="{Binding Source={x:Static res:Resources.XGener}}" Margin="0,5,0,0"  Grid.Row="4"/>
                <TextBlock x:Name="ProductIdxap" Margin="0,5,0,0" Grid.Row="0" Grid.Column="1" />
                <TextBlock x:Name="Titlexap" Margin="0,5,0,0" Grid.Row="1" Grid.Column="1" />
                <TextBlock x:Name="Versionxap" Margin="0,5,0,0" Grid.Row="2" Grid.Column="1" />
                <TextBlock x:Name="Authorxap" Margin="0,5,0,0" Grid.Row="3" Grid.Column="1"/>
                <TextBlock x:Name="Genrexap" Margin="0,5,0,0"  Grid.Row="4" Grid.Column="1"/>
            </Grid>
        </Expander>
        <StackPanel Orientation="Horizontal">
            <Button Content="{Binding Source={x:Static res:Resources.XDeployBnt}}" Name="BntNewDeploy" HorizontalAlignment="Left" Margin="0,5,10,0" IsEnabled="False" Click="BntNewDeployClick" Padding="5" />
            <Button Content="{Binding Source={x:Static res:Resources.XUpdateDeploy}}" Name="BntUpdDeploy" HorizontalAlignment="Left" Margin="0,5,10,0" IsEnabled="False" Click="BntUpdDeployClick" Padding="5" />
            <Button Content="{Binding Source={x:Static res:Resources.XCache}}"  Name="BntCache" HorizontalAlignment="Left" Margin="0,5,0,0" IsEnabled="True" Click="BntCacheClick" Padding="5" />
        </StackPanel>
        <TextBlock x:Name="MessageDeploy" Margin="0,5,0,0" Foreground="Red" />
    </StackPanel>
</UserControl>
